package 装饰模式.计算器实例;

/**
 * @author zyl
 * @Description
 * @since 2023/12/26 9:42
 */

public  class Operation implements ISale{

    protected ISale iSale;

    protected void decorate(ISale iSale){
        this.iSale = iSale;
    }


    @Override
    public double getResult(double numberA, double numberB) {
        double result = this.iSale.getResult(numberA, numberB);
        return result;
    }
}
